﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ExcelImportComponent
{
    public class ExcelImportValidMessage
    {
        public string Coordinate
        {
            get
            {
                return string.Format("{0}:{1}", X, Y);
            }
        }

        public string Value { get; set; }

        public string X { get; private set; }

        public string Y { get; private set; }

        public List<string> ErrorMessage { get; set; }

        public ExcelImportValidMessage(string x,string y)
        {
            ErrorMessage = new List<string>();
            this.X = x;
            this.Y = y;
        }

        public ExcelImportValidMessage Clone()
        {
            ExcelImportValidMessage mssage = new ExcelImportValidMessage(this.X,this.Y);
            mssage.Value = this.Value;
            mssage.ErrorMessage.AddRange(this.ErrorMessage.ToArray());
            return mssage;
        }
    }
}
